﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;

namespace Cloud.Core.Model
{
    /// <summary>
    /// 秤表(Balance)
    /// </summary>
    public class Balance
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Key]
        public Guid Id { get; set; }
        /// <summary>
        /// 型号
        /// </summary>
        public string Model { get; set; }
        /// <summary>
        /// 鉴定精度
        /// </summary>
        public string appraisalPrecision { get; set; }
        /// <summary>
        /// 使用精度
        /// </summary>
        public string usePrecision { get; set; }
        /// <summary>
        /// 称重传感器数量
        /// </summary>
        public int Sensor { get; set; }
        /// <summary>
        /// 称重托轨数量
        /// </summary>
        public int weighingSupporting { get; set; }
        /// <summary>
        /// 结构形式
        /// </summary>
        public string structure { get; set; }
        /// <summary>
        /// 计算精度
        /// </summary>
        public string calcAccuracy { get; set; }
        /// <summary>
        /// 最小带宽
        /// </summary>
        public int minWidth { get; set; }
        /// <summary>
        /// 最大带宽
        /// </summary>
        public int maxWidth { get; set; }
        /// <summary>
        /// 传感器类型
        /// </summary>
        public string sensorId { get; set; }

        /// <summary>
        /// 传感器类型
        /// </summary>
        public string calcWidth { get; set; }

        /// <summary>
        /// 结构特点
        /// </summary>
        public string structureEasy { get; set; }
        /// <summary>
        /// 特点
        /// </summary>
        public string characteristic { get; set; }
        /// <summary>
        /// 场合
        /// </summary>
        public string occasion { get; set; }
        /// <summary>
        /// 是否推荐
        /// </summary>
        public int enabled { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        public string CreateUserId { get; set; }
        /// <summary>
        /// 修改人
        /// </summary>
        public string ModifyUserId { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateDate { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? ModifyDate { get; set; }

        public Balance()
        {
            this.Id = Guid.NewGuid();
            this.CreateDate = Convert.ToDateTime(DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
            this.ModifyDate = Convert.ToDateTime(DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
        }
    }
}
